package com.bootdo.hjh.domain;

import java.io.Serializable;
import java.util.Date;

public class SmsLog implements Serializable {
    private Integer id;

    private String mobile;

    private String template;

    private String param;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    private String updateSql;

    public SmsLog() {
    }

    private SmsLog(Builder builder) {
        setId(builder.id);
        setMobile(builder.mobile);
        setTemplate(builder.template);
        setParam(builder.param);
        setCreateTime(builder.createTime);
        setUpdateSql(builder.updateSql);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template == null ? null : template.trim();
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param == null ? null : param.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateSql() {
        return this.updateSql;
    }

    public void setUpdateSql(String updateSql) {
        this.updateSql = updateSql;
    }


    public static final class Builder {
        private Integer id;
        private String mobile;
        private String template;
        private String param;
        private Date createTime;
        private String updateSql;

        private Builder() {
        }

        public Builder id(Integer val) {
            id = val;
            return this;
        }

        public Builder mobile(String val) {
            mobile = val;
            return this;
        }

        public Builder template(String val) {
            template = val;
            return this;
        }

        public Builder param(String val) {
            param = val;
            return this;
        }

        public Builder createTime(Date val) {
            createTime = val;
            return this;
        }

        public Builder updateSql(String val) {
            updateSql = val;
            return this;
        }

        public SmsLog build() {
            return new SmsLog(this);
        }
    }
}